<form id="edit-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2"><span style="color:red">*</span>跟进类型:</label>
        <div class="form-group col-sm-8">

            <select id="c-type" name="row[follow_type]" data-rule="required" class="form-control">
                {:build_field_option('跟进类型')}
            </select>
        </div>
        <small style="line-height:34px;" >
            <span style="padding:5px;"></span>
            <a href="javascript:;" id="follow_type"   data-toggle="popover" data-placement="right" data-trigger="hover" data-template='<div class="popover" role="tooltip">
    <div class="arrow"></div>
    <h3 class="popover-title" style="width:200px;"></h3>
</div>'  data-original-title="跟进类型可自定义类型,在【基础设置】—【字段类型管理】中进行设置"><i class="fa fa-question-circle" style="font-size:16px;"></i></a>
        </small>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商机状态:</label>
        <div class="form-group col-sm-8">

            <select name="row[follow]" class="form-control">
                <option value="0">初期沟通</option>
                <option value="1">立项跟踪</option>
                <option value="2">方案/报价</option>
                <option value="3">谈判审核</option>
                <option value="4">赢单</option>
                <option value="5">输单</option>
                <option value="6">无效</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-next_time" class="control-label col-xs-12 col-sm-2">下次跟进时间:</label>
        <div class="form-group col-sm-8">

            <input id="c-next_time"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择下次跟进时间" name="row[next_time]" type="text">
        </div>
        <small style="line-height:34px;" >
            <span style="padding:5px;"></span>
            <a href="javascript:;" id="myPopover"   data-toggle="popover" data-placement="right" data-trigger="hover" data-template='<div class="popover" role="tooltip">
    <div class="arrow"></div>
    <h3 class="popover-title" style="width:200px;"></h3>
</div>'  data-original-title="该时间到期会在【通知/待办】—【今日需联系商机】处进行提醒"><i class="fa fa-question-circle" style="font-size:16px;"></i></a>
        </small>
    </div>
    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">上传附件:</label>
        <div class="form-group col-sm-8">

            <div class="input-group">
                <input id="c-image" class="form-control" size="35" placeholder="上传附件" name="row[files]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
						<span><button type="button" id="faupload-image" class="btn btn-danger faupload"
                                      data-input-id="c-image"
                                      data-url="qingdongams/base/upload"
                                      data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>

                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2"><span style="color:red">*</span>跟进内容:</label>
        <div class="form-group col-sm-8">

			<textarea id="c-content" class="form-control"
                      data-rule="required" rows="3" name="row[content]"
                      placeholder=""></textarea>
        </div>

    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">提醒谁看:</label>
        <div class="form-group col-sm-8">

            {:build_select('reminds_id[]', $staff, null, ['class'=>'form-control selectpicker', 'multiple'=>'', 'data-rule'=>'', 'data-live-search'=>'true'])}
        </div>

    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
